import api from "./index";

// 订单相关接口
export default {
  // // 创建订单
  // createOrder: (params) => api.post("/system/order/createOrder", params),
  // // 订单列表
  // getOrderList: (params) => api.get("/system/order/listByUser", params),
  // // 订单详情
  // getOrderDetail: (params) => api.get("/system/order/orderDetails", params),
  // // 订单退单
  // chargeback: (params) => api.get("/system/order/chargeback", params),
  // // 商品评论
  // createComment: (params) => api.post("/applet/comment", params),
  // // 确认收货
  // receivingGoods: (params) => api.get("/system/order/receivingGoods", params),
  // // 取消订单
  // cancelOrder: (params) => api.get("/system/order/cancelOrder", params),
  // // 查看物流
  // getOrderLogistics: (params) => api.get("/system/order/getOrderPhysicalDistribution", params),
  // // 退货详情
  // getSalesReturnDetail: (params) => api.get("/applet/shipments/list", params),
  // // 撤销退货
  // cancelRefund: (params) => api.get("/system/order/cancelRefund", params),
  
  
  //订单列表
  getOrderList:(params)=> api.get('/applet/order/getOrderAllInfo',params),
  //创建订单
  createOrder:(params) => api.post('/applet/order/createOrder',params),
  //订单支付
  orderPay:(params)=> api.post('/applet/order/orderPay',params),
  //根据订单预约添加预约时间
  orderTime:(params) =>api.post('/applet/order/makeAnAppointment',params),
    //根据订单修改预约时间
   updateOrderTime:(params) =>api.post('/applet/order/updateMakeAnAppointment',params),
   //根据订单查询体检报告
   getBaoGao:(params) =>api.get('/applet/results/list',params),
   //创建团购订单
   createOrganiz:(params)=>api.post("/applet/for",params)
};
